package com.zbs.framework.security.constant;

import com.zbs.framework.security.entity.UrlResources;

import java.util.*;

public interface SecurityConstants {
    Set<String> preAuthorizeSet= new HashSet<>();
    List<UrlResources> urlResources = new ArrayList<>();
    /**
     * permissions-model 权限模式值
     * all/annotations 默认值：annotations 当 do-open-permissions 为true 时 permissions-model配置生效
     * 值：ALL/annotations  all:拦截所有API annotations: 只拦截@PreAuthorize的注解的方法
     */
    String ANNOTATIONS = "annotations";
    String ALL = "all";

    /**
     * 接口是否有注解
     */
    Map<String,Boolean> pathIsAnnotations = new HashMap<>();
}
